package Toolimpl;

import Tool.ToolInter;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Administrator on 2017/4/25.
 */
public class ToolImpl implements ToolInter {
    @Override
    public String dateToString(Date date) {
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
        String dateString=  null;
        if (date !=null){
            dateString = df.format(date);
            return  dateString;
       }
        return "";
    }

    @Override
    public Date stringToDate(String date) {
        return null;
    }

    @Override
    public Date stringToDate2(String date) {
        return null;
    }
}
